package com.lancoo.znbkxx.teacher.model.data

import com.chad.library.adapter.base.entity.SectionMultiEntity

/**
 * @author : Admin
 * @date   : 2019/7/23 20:41
 * @desc   :
 */
class PaperSetSection : SectionMultiEntity<Paper> {
    var layer: Int = -1
    var paperSet: PaperSet? = null

    constructor(paper: Paper) : super(paper)
    constructor(isHeader: Boolean, header: String, paperSet: PaperSet, layer: Int) : super(isHeader,
            header) {
        this.paperSet = paperSet
        this.layer = layer
    }

    override fun getItemType(): Int {
        return when (t.State) {
            0, 1 -> 3
            2, 3 -> 2
            else -> 1
        }
    }

}